<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title><g:layoutTitle default="Grails"/></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon">
    <link rel="apple-touch-icon" href="${resource(dir: 'images', file: 'apple-touch-icon.png')}">
    <link rel="apple-touch-icon" sizes="114x114" href="${resource(dir: 'images', file: 'apple-touch-icon-retina.png')}">
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'mobile.css')}" type="text/css">
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'screen.css')}" type="text/css">
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'lightbox.css')}" type="text/css">
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'jquery.bxslider.css')}" type="text/css">
    <g:javascript>
        function showSpinner(visible) {
            $('spinner').style.display = visible ? "inline" : "none";
        }
        Ajax.Responders.register({
            onLoading:function () {
                showSpinner(true);
            },
            onComplete:function () {
                if (!Ajax.activeRequestCount) showSpinner(false);
            }
        });
        jQuery.noConflict()
    </g:javascript>
    <r:script>
        jQuery.noConflict();
    </r:script>
    <g:javascript library="prototype"/>
    <g:javascript library="jquery" plugin="jquery" />
    <r:require module="jquery-ui"/>
    <r:external uri="/js/jquery-1.7.2.min.js" disposition="head"/>
    <r:external uri="/js/lightbox.js" disposition="head"/>
    <r:external uri="/js/jquery.bxslider.min.js" disposition="head"/>
    <g:layoutHead/>
    <r:layoutResources/>
</head>

<body>
<div id="spinner" class="spinner" style="display:none;">
    <img src="${resource(dir: 'images', file: 'spinner.gif')}"
         alt="${message(code: 'spinner.alt', default: 'Cargando...')}"/>
</div>
<style type="text/css">
p.title {
    font-family: fantasy;
    font-style: italic;
    font-variant: normal;
    font-weight: lighter;
    font-size: large;
    word-spacing: normal;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: capitalize;
    text-indent: 0ex;
}
</style>

<div class="header" role="banner" style="text-wrap: none;">
    <table>
        <tr>
            <td style="text-align: left;width: 300px">
                <g:link uri="/">
                    <img src="${createLinkTo(dir: 'images/', file:'banner.png' )}" alt="Belleza Relativa v1"/>
                </g:link>
            </td>
            <td style="width: 620px;text-align: right">
                <sec:ifLoggedIn>
                    Usuario: <sec:username/>
                    <g:link controller="logout" action="index">
                        (Salir)
                    </g:link>
                </sec:ifLoggedIn>
                <sec:ifNotLoggedIn>
                    <g:if test="${session.getAttribute('esInvitado')}">
                        Invitado: ${session.getValue('nombreInvitado')}
                        <g:link controller="logout" action="index">
                            (Salir)
                        </g:link>
                    </g:if>
                </sec:ifNotLoggedIn>
            </td>
        </tr>
    </table>
</div>
<g:if test="${flash.message}">
    <div class="message" role="status">${flash.message}</div>
</g:if>
<g:layoutBody/>
<div class="footer" role="contentinfo">Todos los Derechos Reservados</div>

<div id="spinner" class="spinner" style="display:none;"><g:message code="spinner.alt" default="Cargando..."/></div>
<g:javascript library="application"/>
<r:layoutResources/>
</body>
</html>
